from django.db import models

# Create your models here. 类是表   属性是字段
class Grade(models.Model):
    grade_name = models.CharField(max_length=20, unique=True, verbose_name="班级名称")
    grade_number = models.CharField(max_length=10,unique=True ,verbose_name="班级编号")

    class Meta:
        db_table = "grade"
        verbose_name = "班级"
        verbose_name_plural = "班级名称"

    def __str__(self):
        return self.grade_name